package com.chixing.day06_static.word;

public class Array {
    public  static void main(String[] args){
        int count =0;
        for(int index =0; index <= 20; index ++){ // i = 0  , index = 3; index = 5 ;
            switch( index ++% 4){  // (0 % 4 =0)  , index = 1;  (3 % 4 = 3),index = 4
                case 0:
                    count = ++index;  // count = 2; index = 2
                case 1:
                    count += index; // count = 4; index = 2;
                    break;
                default:
                    System.out.println(count);   // 4
            }
        }
    }
}
